package com.tbit.uqbike.client.controller;

import com.tbit.uqbike.client.pojo.Result;
import com.tbit.uqbike.client.pojo.vo.OutAgeConfig;
import com.tbit.uqbike.client.service.OutAgeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 一键停运公告
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2025-2-5
 */
@RestController
@RequestMapping("/outAge")
public class OutAgeController {

    @Resource
    private OutAgeService outAgeService;


    /**
     * 获取一键停运公告
     * @param accountId 区域id
     * @return Result
     */
    @GetMapping("/getOutAge")
    public Result<OutAgeConfig> getOutAge(Integer accountId){
        return outAgeService.getOutAge(accountId);
    }

}
